package com.xbongbong.pro.statistic.through.pojo;

import com.xbongbong.pro.detailtab.pojo.DataDetailTabPojo;
import com.xbongbong.pro.enums.SaasMarkEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 表格数据格式（包含穿透）
 *
 * @author 徐俊杰
 * @date 2020/3/20 16:40
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class TableDataInfoNewPojo implements Serializable {
    private static final long serialVersionUID = -3736592377242149772L;

    /**
     * 显示值
     */
    private String value;

    /**
     * 是否可穿透，0否，1是，默认为0不可穿透
     */
    private Integer throughFlag;

    /**
     * 穿透需要的数据
     */
    private DataDetailTabPojo entity;

    public TableDataInfoNewPojo(String value) {
        this.value = value;
    }

    public TableDataInfoNewPojo(String value, Integer throughFlag, DataDetailTabPojo dataDetailTabPojo) {
        this.value = value;
        this.throughFlag = throughFlag;
        this.entity = dataDetailTabPojo;
    }
}
